*Anti-Muslim Policy Preferences and Boundaries
*of American Identity Across Partisanship

*ssc install blindschemes 
*for plain plainplot scheme 


**********************************
************ Study 1 *************	
**********************************


*2018 CCES  

*Load "2018_10_CCES_final_weight.dta"

***Descriptive Stats
latabstat banmuslims registry sharia mar_short female white income educ agegroup attention ideology_7pt independent_other democrat presapp [aw=teamweight],  stat(mean sd min max n) col(stat) format(%9.2g)


** Table 1: Predict MAR
eststo clear
eststo: quietly reg mar_short Amid [pw=teamweight]
eststo: quietly reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=teamweight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table1_study1.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

	** Coef 1: Predict MAR
	eststo clear
	preserve
	reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=teamweight]
	estimates store multivariate 

	
	coefplot  multivariate ///
	 ||,drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) title(MAR) scale(1) col(3)
	graph save Graph "fig1_study1.gph", replace
	graph export "fig1_study1_MAR.pdf", as(pdf) name("Graph") replace
	restore


** Table 2: Main results (Bivariate + Multivariate)
eststo clear
eststo: quietly reg banmuslims Amid  [pw=teamweight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]

eststo: quietly reg registry Amid [pw=teamweight]
eststo: quietly reg registry Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]

eststo: quietly reg sharia Amid [pw=teamweight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table2_study1.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace



	
	** Coef 2: Main results
	* A) Ban
		eststo clear
		preserve
		
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight], level(90)
		estimates store multivariate1

	* B) Registry	
		reg registry Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight], level(90)
		estimates store multivariate2 

	* C) Sharia
		reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight], level(90)
		estimates store multivariate3 


       coefplot multivariate1, bylabel(Muslim Ban) || multivariate2, bylabel(Registry) || multivariate3, bylabel(Sharia) ///
	   ||, drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) scale(1) col(3)
		graph save Graph "fig2_study1.gph", replace				
	    graph export "fig2_study1.pdf", as(pdf) name("Graph") replace

		
		
** Table 3: By PID
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=teamweight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=teamweight]
eststo: quietly reg registry Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=teamweight]
eststo: quietly reg registry Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=teamweight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=teamweight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=teamweight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table3_study1.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace


	** Coef 3: By PID
	* A) Ban (Dem and Rep)
		eststo clear
		preserve
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp  if democrat ==1 [pw=teamweight], level(90)
		estimates store democrat_ban 

		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp  if republican ==1 [pw=teamweight], level(90)
		estimates store republican_ban 
		
		restore 
	
	* B) Registry	
		preserve
		reg registry Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=teamweight], level(90)
		estimates store democrat_registry 
		
		reg registry Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=teamweight], level(90)
		estimates store republican_registry  

		restore
		
	* C) Sharia
		preserve
		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=teamweight], level(90)
		estimates store democrat_sharia 

		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=teamweight], level(90)
		estimates store republican_sharia 

		restore
		
	
       coefplot (democrat_ban, label(Democrats) color(blue) ciopts(color(blue))) (republican_ban, label(Republicans) color(red) ciopts(color(red))), bylabel(Muslim Ban) || democrat_registry republican_registry, bylabel(Registry) || democrat_sharia republican_sharia, bylabel(Sharia) ///
	   ||, drop(_cons female white income educ agegroup attention ideology_7pt presapp) byopts(row(1)) xline(0) scheme(plotplain) scale(1) col(3) legend(rows(1)) 
		graph save Graph "fig3_study1.gph", replace				
	    graph export "fig3_study1.pdf", as(pdf) name("Graph") replace


		
*Models excluding those who scored 0 or 1 on the Amid Scale 
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]  if Amid!=0 & Amid!=1
eststo: quietly reg registry Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]  if Amid!=0 & Amid!=1
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight] if Amid!=0 & Amid!=1

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_response_bias_study1_CCES.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace


*** White vs POC
eststo clear
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]  if white==1
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight] if white==0

eststo: quietly reg registry Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]  if white==1
eststo: quietly reg registry Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight]  if white==0

eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight] if white==1
eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=teamweight] if white==0

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_white_nonwhite_study1_CCES.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

	
	
**********************************
************ Study 2 *************	
**********************************
clear

**********************************
************ 2019 Lucid **********
**********************************

*Load "2019_6_Lucid_final_weight.dta"


***Descriptive Stats
latabstat banmuslims patrol sharia restrictmosques mar_short female white income educ agegroup attention ideology_7pt independent_other democrat presapp [aw=weight],  stat(mean sd min max n) col(stat) format(%9.2g)


** Table 1: Predict MAR
eststo clear
eststo: quietly reg mar_short Amid [pw=weight]
eststo: quietly reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=weight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table1_study2_2019.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

	** Coef 1: Predict MAR
	eststo clear
	preserve
	reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=weight]
	estimates store multivariate 

	
	coefplot  multivariate ///
	 ||,drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) title(MAR) scale(1) col(3)
	graph save Graph "fig1_study2_2019.gph", replace
	graph export "fig1_study2_2019_MAR.pdf", as(pdf) name("Graph") replace
	restore


** Table 2: Main results (Bivariate + Multivariate)
eststo clear
eststo: quietly reg banmuslims Amid [pw=weight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

eststo: quietly reg patrol Amid [pw=weight]
eststo: quietly reg patrol Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

eststo: quietly reg sharia Amid [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]


eststo: quietly reg restrictmosques Amid [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table2_study2_2019.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace



	
	** Coef 2: Main results
	* A) Ban
		eststo clear
		preserve
		
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate1

	* B) Patrol	
		reg patrol Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate2 

	* C) Sharia
		reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate3 
		
	* D) Mosque
		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate4 



       coefplot multivariate1, bylabel(Muslim Ban) || multivariate2, bylabel(Patrol) || multivariate3, bylabel(Sharia) || multivariate4, bylabel(Mosque) ///
	   ||, drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) scale(1) col(3)
		graph save Graph "fig2_study2_2019.gph", replace				
	    graph export "fig2_study2_2019.pdf", as(pdf) name("Graph") replace

		
		
** Table 3: By PID
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg patrol Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg patrol Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table3_study2_2019.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace


	** Coef 3: By PID
	* A) Ban (Dem and Rep)
		eststo clear
		preserve
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp  if democrat ==1 [pw=weight], level(90)
		estimates store democrat_ban 

		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp  if republican ==1 [pw=weight], level(90)
		estimates store republican_ban 
		
		restore
	
	* B) Patrol	
		preserve
		reg patrol Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_patrol 
		
		reg patrol Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_patrol  

		restore
		
	* C) Sharia
		preserve
		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_sharia 

		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_sharia 
		
		restore
			
	* C) Mosque
		preserve
		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_mosque

		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_mosque 

		restore
		
	
       coefplot (democrat_ban, label(Democrats) color(blue) ciopts(color(blue))) (republican_ban, label(Republicans) color(red) ciopts(color(red))), bylabel(Muslim Ban) || democrat_patrol republican_patrol, bylabel(Patrol) || democrat_sharia republican_sharia, bylabel(Sharia) || democrat_mosque republican_mosque, bylabel(Mosque) ///
	   ||, drop(_cons female white income educ agegroup attention ideology_7pt presapp) byopts(row(1)) xline(0) scheme(plotplain) col(3) legend(rows(1)) xscale(range(-.1 0.5))
		graph save Graph "fig3_study2_2019.gph", replace				
	    graph export "fig3_study2_2019.pdf", as(pdf) name("Graph") replace


		
*Models excluding those who scored 0 or 1 on the Amid Scale 
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if Amid!=0 & Amid!=1
eststo: quietly reg patrol Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if Amid!=0 & Amid!=1
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if Amid!=0 & Amid!=1
eststo: quietly reg restrictmosques Amid white female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if Amid!=0 & Amid!=1

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_response_bias_study2_2019.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace



** White vs POC
eststo clear
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==1
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==0

eststo: quietly reg patrol Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==1
eststo: quietly reg patrol Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==0

eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==1
eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==0

eststo: quietly reg restrictmosques Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==1
eststo: quietly reg restrictmosques Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if white==0

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_white_nonwhite_study2_2019.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace



**********************************
************ 2020 Lucid **********
**********************************
clear 

*Load "2020_8_Lucid_final_weight.dta"

***Descriptive Stats
latabstat banmuslims noweapon sharia restrictmosques mar_short female white income educ agegroup attention ideology_7pt independent_other democrat presapp [aw=weight],  stat(mean sd min max n) col(stat) format(%9.2g)


** Table 1: Predict MAR
eststo clear
eststo: quietly reg mar_short Amid [pw=weight]
eststo: quietly reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=weight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table1_study2_2020.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

	** Coef 1: Predict MAR
	eststo clear
	preserve
	reg mar_short Amid female white income educ agegroup attention ideology_7pt independent_other democrat [pw=weight]
	estimates store multivariate 

	
	coefplot  multivariate ///
	 ||,drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) title(MAR) scale(1) col(3)
	graph save Graph "fig1_study2_2020.gph", replace
	graph export "fig1_study2_2020_MAR.pdf", as(pdf) name("Graph") replace
	restore


** Table 2: Main results (Bivariate + Multivariate)
eststo clear
eststo: quietly reg banmuslims Amid  [pw=weight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

eststo: quietly reg noweapon Amid [pw=weight]
eststo: quietly reg noweapon Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

eststo: quietly reg sharia Amid [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

eststo: quietly reg restrictmosques Amid [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table2_study2_2020.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace



	
	** Coef 2: Main results
	* A) Ban
		eststo clear
		preserve
		
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate1

	* B) Noweapon	
		reg noweapon Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate2 

	* C) Sharia
		reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate3 
		
	* D) Mosque
		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight], level(90)
		estimates store multivariate4 



       coefplot multivariate1, bylabel(Muslim Ban) || multivariate2, bylabel(Weapon Ban) || multivariate3, bylabel(Sharia) || multivariate4, bylabel(Mosque) ///
	   ||, drop(_cons) byopts(row(1)) xline(0) scheme(plotplain) scale(1) col(3)
		graph save Graph "fig2_study2_2020.gph", replace				
	    graph export "fig2_study2_2020.pdf", as(pdf) name("Graph") replace

		
		
** Table 3: By PID
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg noweapon Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg noweapon Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if democrat==1 [pw=weight]
eststo: quietly reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if republican==1 [pw=weight]
esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "table3_study2_2020.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace


	** Coef 3: By PID
	* A) Ban (Dem and Rep)
		eststo clear
		
		preserve
		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp  if democrat ==1 [pw=weight], level(90)
		estimates store democrat_ban 

		reg banmuslims Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_ban 
		
		restore 
	
	* B) Noweapon	
		preserve
		reg noweapon Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_noweapon 
		
		reg noweapon Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_noweapon  

		restore		
		
	* C) Sharia
		preserve
		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_sharia 

		reg sharia Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_sharia 
		
		restore
			
	* C) Mosque
		preserve
		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if democrat ==1 [pw=weight], level(90)
		estimates store democrat_mosque

		reg restrictmosques Amid female white income educ agegroup attention ideology_7pt presapp if republican ==1 [pw=weight], level(90)
		estimates store republican_mosque 

		restore
		
	
       coefplot (democrat_ban, label(Democrats) color(blue) ciopts(color(blue))) (republican_ban, label(Republicans) color(red) ciopts(color(red))), bylabel(Muslim Ban) || democrat_noweapon republican_noweapon, bylabel(Weapon Ban) || democrat_sharia republican_sharia, bylabel(Sharia) || democrat_mosque republican_mosque, bylabel(Mosque) ///
	   ||, drop(_cons female white income educ agegroup attention ideology_7pt presapp) byopts(row(1)) xline(0) scheme(plotplain) col(3) legend(rows(1)) xscale(range(-.1 0.5))
		graph save Graph "fig3_study2_2020.gph", replace				
	    graph export "fig3_study2_2020.pdf", as(pdf) name("Graph") replace




*Models excluding those who scored 0 or 1 on the Amid Scale 
eststo clear
eststo: quietly reg banmuslims Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if Amid!=0 & Amid!=1
eststo: quietly reg noweapon Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight] if Amid!=0 & Amid!=1
eststo: quietly reg sharia Amid female white income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if Amid!=0 & Amid!=1
eststo: quietly reg restrictmosques Amid white female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if Amid!=0 & Amid!=1

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_response_bias_study3_2020.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace




** White vs POC
eststo clear
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==1
eststo: quietly reg banmuslims Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==0

eststo: quietly reg noweapon Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==1
eststo: quietly reg noweapon Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==0

eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==1
eststo: quietly reg sharia Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==0

eststo: quietly reg restrictmosques Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==1
eststo: quietly reg restrictmosques Amid female income educ agegroup attention ideology_7pt independent_other democrat presapp [pw=weight]  if white==0

esttab, label se ar2 star(+ 0.10 * 0.05 ** 0.01 *** 0.001)
esttab using "rr_white_nonwhite_study3_2020.tex", label se ar2 b(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace


